package com.linux.huhx.enumTest;

/**
 * Created by huhx on 2017-05-24.
 */
public enum LoveUtils {
    BOYS {
        public String getName() {return "huhx";}
        public String getPassword() {return "123456";}
    },
    GRIL {
        public String getName() {return "linux";}
        public String getPassword() {return "654321";}
    };

    public String getName() {
        throw new AbstractMethodError();
    }

    public String getPassword() {
        throw new AbstractMethodError();
    }

    public void sayHello() {
        String name = getName();
        System.out.println("my name is " + name + ", and password: " + getPassword());
    }
}
